﻿using System;

namespace EmptyWallGallery.FrontEnd.inside.Editor.Products
{
    public partial class DeleteAlbum : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["Id"] == null) return;
            if (!Core.Utilities.Common.Instance.IsNumeric(Request.QueryString["Id"])) return;

            Core.BLL.Album.Instance.Delete(Convert.ToInt32(Request.QueryString["Id"]));

            Response.Redirect("Album.aspx");
        }
    }
}